package pack1;

import java.text.DateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
/*enum mmonth
 {     private int mnt;
	 Jan(1),Feb(2),Mar(3),Apr(4),May(5),June(6),July(7),Aug(8),Sep(9),Oct(10),Nov(11),Dec(12)
	
	 mmonth(final int a)
	 {this.mnt=a;
		 
	 }
 }
*/
public class dateActitime {
public static void main(String[] args) {
/*WebDriver	driver=new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
driver.get("http://127.0.0.1/login.do");
driver.findElement(By.name("username")).sendKeys("admin");
driver.findElement(By.name("pwd")).sendKeys("manager");
driver.findElement(By.id("loginButton")).sendKeys(Keys.RETURN);

//System.out.println(mmonth.Jan);
driver.findElement(By.linkText("View Time-Track")).click();
System.out.println("over");

driver.findElement(By.xpath("//tr/td[3]//img[@class='date-button-image']")).click();
driver.findElement(By.xpath(".//*[@id='ext-gen67']//tr[5]/td[5]/a/em/span")).click();
try {
	Thread.sleep(5000);
} catch (InterruptedException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}
String d=driver.findElement(By.xpath("//tr[@id='ext-gen52']//span")).getText();

*/
Date d1=new Date();
System.out.println(d1);
DateFormat df=DateFormat.getDateInstance(DateFormat.MEDIUM);
String dd=df.format(d1);
System.out.println(dd);
}
}
